<template>
	<view class="winningthebidFactory">
		<view class="list disFlex scale-1px-bottom" v-for="(item,index) in factorys" :key='index'>
			<view class="name">{{item.factory.factory_name}}</view>
			<view class="right" style="color: #2291FF;" @tap="getnav(router(`factoryDetail?id=${item.factory.id}`))">查看</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				factorys:'',
			}
		},
		onLoad(option) {
			this.getfactory(option.id)
		},
		methods: {
			getfactory(id){
				this.http('/api/tender_order/lists', 'post', {id}, )
					.then((res) => {
						this.factorys=res.data
						console.log(this.factorys)
					})
			},
		}
	}
</script>

<style lang="less">
	.winningthebidFactory{
		padding: 0 40rpx;
		.list{
			padding:  34rpx 0;
			.name{
				font-size:32rpx;
			}
			.see{
				color: #2291FF;
			}
		}
	}
</style>
